﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iLangl.BusinessModel.DAL.XMLStorage
{
	public class BaseStorageDAL
	{
		private static object storageMutex = new object();
		public dtoXmlStorage Storage
		{
			get
			{
				return XmlStorageManager.Instance.Storage;
			}
		}

		public void AcceptChanges()
		{
			lock (storageMutex)
			{
				XmlStorageManager.Instance.AcceptChanges();
			}
		}

		public TimeSpan CurrentTimeSpan
		{
			get
			{
				return new TimeSpan(DateTime.Now.Ticks);
			}
		}
	}
}
